package com.example.easyexcel.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AssetTargetInfo {

    // ========== Excel映射字段（顺序与Excel一致） ==========
    @ExcelProperty(value = "指标名称", index = 1)
    private String targetName;

    @ExcelProperty(value = "指标定义", index = 2)
    private String targetDefinition;

    @ExcelProperty(value = "指标统计口径", index = 4)
    private String targetStatsCoverage;

    // 0:基础指标 1：组合指标
    @ExcelProperty(value = "指标类型", index = 3)
    private String targetType;

    @ExcelProperty(value = "计数单位", index = 5)
    private String cntOrg;

    // 两个时间维度字段
    @ExcelProperty(value = "时间维度（日历年）", index = 6)
    private String calendarYear;

    @ExcelProperty(value = "时间维度（彩票年）", index = 7)
    private String lotteryYear;

    // 移除 dimension 的 ExcelProperty 注解
    // 因为 dimension 将由程序计算得出，而不是直接从 Excel 读取
    @ExcelIgnore
    private Integer timeDimensionTc;

    // Excel中可能不需要这些时间字段的映射，这里暂不添加ExcelProperty注解

    // ========== 数据库专用字段（Excel忽略） ==========
    @ExcelIgnore
    private String targetId;

    @ExcelIgnore
    private String assetNo;

    //指标类型代码
    @ExcelIgnore
    private Integer targetTc;

    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelIgnore
    private LocalDateTime updateTime;

    @ExcelIgnore
    private Long delFlag;

    @ExcelIgnore
    private LocalDateTime delTime;
}


